/*Copyright 2011 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
#limitations under the License.*/

/* fonts */

@font-face {
  font-family: 'roboto';
  src: url('Roboto-Regular.ttf');
}
@font-face {
  font-family: 'roboto-medium';
  src: url('Roboto-Medium.ttf');
}
@font-face {
  font-family: 'roboto-bold';
  src: url('Roboto-Bold.ttf');
}


/* general */
html, body {
  background-color: #000;
  color: #fff;
  font-family: roboto, arial, sans-serif;
  margin: 0px;
  padding: 0;
  font-size: 12pt;
}
	  
	  
/*http://css-tricks.com/custom-scrollbars-in-webkit/ */
::-webkit-topbar{
  width: 16px;
	height: 16px;
}

 
/* Track */
::-webkit-scrollbar-track {
background-image: url(../img/scroll_horiz_mid.jpg);
	background-repeat: repeat-y;
}

::-webkit-scrollbar-track-piece:vertical {
	background-image: url(../img/scroll_horiz_mid.jpg);
	background-repeat: repeat-y;
}

::-webkit-scrollbar-track-piece:horizontal {
	background-image: url(../img/scroll_vert_mid.jpg);
	background-repeat: repeat-x;
}
 
::-webkit-scrollbar-thumb {
     -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(0,0,255,0.8); 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

::-webkit-scrollbar-corner{
	background-color:#000;
}


#game-canvas {
  display:none;
  position: absolute;
  left: 100px;
  top: 100px;
}

#canvas {
  left:100px;
  top:100px;
}

#canvasui {
  position: absolute;
  left: 120px;
  top: 600px;
}

#playerstatus {
  position: absolute;
  left: 0px;
  top: 0px;
}

#gui-powerSlots {
  position: absolute;
  border: 1px solid #1f2d4d;
  border-radius: 3px;
  background-color:#111;
  left: 0px;
  top: 0px;
  width:800px;
  height:26px;
}

.gui-powerSlot {
  background-color: #000;
  color: #fff;
  margin: 2px;
  background-image: url(../img/slot.png);
  background-position: 0px 0px;
  position: absolute;
  top: 3px;
  width: 90px;
}

#gui-powerSlot_1 { left: 10px;}
#gui-powerSlot_2 { left:110px;}
#gui-powerSlot_3 { left:210px;}
#gui-powerSlot_4 { left:310px;}
#gui-powerSlot_5 { left:410px;}
#gui-powerSlot_6 { left:510px;}

#gui-score {
  position:absolute;
  top: 5px;
  left: 620px;
}

#gui-credits {
  position:absolute;
  top: 5px;
  left: 700px;
}

#gui-ships {
  position:absolute;
  top:5px;
  left: 780px;
}

#mission_end{
  height:156px;
  position:absolute;
  top:210px;
  left:584px;
  font-family: roboto-bold, arial, sans-serif;
  margin: 0px;
  padding: 0px;
  font-size: 13pt;
  color: yellow;
  text-shadow: 1px 1px 1px #000;
}

#game_loading{
  height:720px;
  width:900px;
  position:absolute;
  background-color: #000;
  top:20px;
  left:200px;
  font-family: roboto-bold, arial, sans-serif;
  margin: 0px;
  padding: 0px;
  font-size: 13pt;
  color: yellow;
  text-shadow: 1px 1px 1px #000;
  text-align: center;
}
.mission_title{
  font-family: roboto-bold, arial, sans-serif;
  margin: 0px;
  padding: 0px;
  font-size: 24pt;
  color: white;
  text-shadow: 1px 1px 2px #333;
}

#loading_progressbar {
  background-color: #000;
  color: #fff;
  font-family: helvetica, arial, sans-serif;
  margin: 0px;
  padding: 0px;
  font-size: 30pt;
  display: none;
}

  a:link {
    color:gray;
    text-decoration:none;
  }
  a:visited {
    color:gray;
    text-decoration:none;
  }
  a:hover {
    color:white;
    text-decoration:none;
  }
  a:active {
    color:white;
    text-decoration:none;
  }
  a.otherLink:link {
    color:gray;
    text-decoration:none;
  }
  a.otherLink:visited {
    color:gray;
    text-decoration:none;
  }
  a.otherLink:hover {
    color:white;
    text-decoration:underline;
  }
  a.otherLink:active {
    color:white;
    text-decoration:none;
  }
	img {
  	text-decoration: none;
  	border: 0 none;
	}

.portrait{
	width:128px;
	height:128px;
	position:absolute;
	top:50px;
	left:50px;
}

ul.buttonbar {
  float: left;
  list-style: none;
  width: 600px}

  ul.buttonbar li {
    background: #001830;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: inset 0 1px 1px 0 #c7c7c7;
    box-shadow: inset 0 1px 1px 0 #c7c7c7;
    float: left;
    margin: 10px 0 0 10px;
    display: block;
    height: 120px;
    text-align: center;
    width: 190px; }

button.if{
    font-family: roboto-bold, arial, sans-serif;
    font-size: 13pt;
    background: #4162a8;
    border-top: 1px solid #38538c;
    border-right: 1px solid #1f2d4d;
    border-bottom: 1px solid #151e33;
    border-left: 1px solid #1f2d4d;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111;
    box-shadow: inset 0 1px 10px 1px #5c8bee, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111;
    color: #fff;
    margin-top: 54px;
    margin-bottom: 10px;
    padding: 10px 0 12px 0;
    text-align: center;
    text-shadow: 0px -1px 1px #1e2d4d;
    width: 150px;
    -webkit-background-clip: padding-box; 
}

button.if:hover {
    -webkit-box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111;
    box-shadow: inset 0 0px 20px 1px #87adff, 0px 1px 0 #1d2c4d, 0 6px 0px #1f3053, 0 8px 4px 1px #111111;
    cursor: pointer; }
button.if:active {
    -webkit-box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111;
    box-shadow: inset 0 1px 10px 1px #5c8bee, 0 1px 0 #1d2c4d, 0 2px 0 #1f3053, 0 4px 3px 0 #111111;
    margin-top: 58px; }

#title {
    display:block;
    background-image:url('../img/title.png');
    background-repeat:no-repeat;
    position: absolute;
    width: 800px;
    height: 130px;
    top: 100px;
    left: 200px;
    margin-left: 0px;
    text-align: justify;
    overflow: hidden;
    z-index:4;
    -webkit-transform: perspective(70px) rotateX(10deg) rotateZ(10deg);
    -webkit-transform-origin: 400px 0px 0px; 
    /*-webkit-animation: rollaround 10s linear 0s infinite;*/
  }

  #welcome_space_map {
    display:block;
    background-image:url('../img/Starmap.png');
    background-repeat:no-repeat;
    position: absolute;
    width: 640px;
    height: 640px;
    top: 00px;
    left:120px;
    margin-left: 0px;
    text-align: justify;
    /*overflow: hidden;*/
    z-index: 2;
    -webkit-transform: perspective(500px) rotateX(30deg) rotateZ(0deg);
    -webkit-transform-origin: 320px 300px 0px; 
    -webkit-animation: spin 40s linear 0s infinite;
  }

  .welcome_space_map_planet {
    -webkit-transform-style: preserve-3d;
    position: absolute;
    height: 40px;
    width: 140px;
    background-repeat:no-repeat;
    font-size: x-small;
    background-size:20px 20px;
    z-index:3;
    -webkit-transform: rotateX(0deg);
    -webkit-animation: aspin 40s linear 0s infinite;
  }

  #welcome_buttons {
    height:800px;
    width:400px;
    z-index: 5;
  }

  /* animation */
  @-webkit-keyframes rollaround {
    0% { -webkit-transform: perspective(1000px) rotateX(0deg) ;
          -webkit-transform-origin: 0px 0px -1200px;  }
    100% { -webkit-transform:  perspective(300px) rotateX(360deg);
           -webkit-transfrom-origin: 0px 0px -800px; }
  }

  @-webkit-keyframes spin {
    0% { -webkit-transform: rotateX(30deg) rotateZ(0deg); }
    50% { -webkit-transform: rotateX(60deg) rotateZ(180deg); }
    100% { -webkit-transform: rotateX(30deg) rotateZ(360deg);}
  }

  @-webkit-keyframes aspin {
    0% { -webkit-transform: rotateX(0deg) rotateZ(360deg); }
    50% { -webkit-transform: rotateX(-30deg) rotateZ(180deg); }
    100% { -webkit-transform: rotateX(0deg) rotateZ(0deg);}
  }

/* SpriteSheet icons */


